#ifndef MUTEX_H
#define MUTEX_H

#include <visibility.h>
#include <stdint.h>
#include "NoCopy.h"

struct pthread_mutex_s;

class __EXPORT Mutex : NoCopy {
public:
	Mutex();
	~Mutex();
	bool lock(uint32_t timeout = ~0L);
	void unlock();
private:
	pthread_mutex_s *mutex_;
};


#endif
